package com.fg.pro.model.utils;


public class UserIdThread {
    private final static ThreadLocal<Long> SYS_USER_ID = new ThreadLocal<>();

    public static void setSysUserId(Long userId){
        SYS_USER_ID.set(userId);
    }

    public static Long sysUserId(){
        return SYS_USER_ID.get();
    }

    public static void clearnUserId(){
        SYS_USER_ID.remove();
    }
}
